package com.ruoyi.control.mapper;

import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; //添加
import com.ruoyi.control.domain.GasDrainagePumpRoomHistory;
import com.ruoyi.control.domain.Mainventilator1History;
import com.ruoyi.control.dto.GasDrainagePumpRoomHistoryDto;
import org.apache.ibatis.annotations.Param;

/**
 * 瓦斯抽放泵房Mapper接口
 *
 * @author ruoyi
 * @date 2024-11-08
 */
public interface GasDrainagePumpRoomHistoryMapper extends BaseMapper<GasDrainagePumpRoomHistory> //修改
{
    /**
     * 查询瓦斯抽放泵房
     *
     * @param id 瓦斯抽放泵房主键
     * @return 瓦斯抽放泵房
     */
    public GasDrainagePumpRoomHistory selectGasDrainagePumpRoomHistoryById(String id);

    /**
     * 查询瓦斯抽放泵房列表
     *
     * @param gasDrainagePumpRoomHistory 瓦斯抽放泵房
     * @return 瓦斯抽放泵房集合
     */
    public List<GasDrainagePumpRoomHistory> selectGasDrainagePumpRoomHistoryList(GasDrainagePumpRoomHistory gasDrainagePumpRoomHistory);

    /**
     * 新增瓦斯抽放泵房
     *
     * @param gasDrainagePumpRoomHistory 瓦斯抽放泵房
     * @return 结果
     */
    public int insertGasDrainagePumpRoomHistory(GasDrainagePumpRoomHistory gasDrainagePumpRoomHistory);

    /**
     * 修改瓦斯抽放泵房
     *
     * @param gasDrainagePumpRoomHistory 瓦斯抽放泵房
     * @return 结果
     */
    public int updateGasDrainagePumpRoomHistory(GasDrainagePumpRoomHistory gasDrainagePumpRoomHistory);

    /**
     * 删除瓦斯抽放泵房
     *
     * @param id 瓦斯抽放泵房主键
     * @return 结果
     */
    public int deleteGasDrainagePumpRoomHistoryById(String id);

    /**
     * 批量删除瓦斯抽放泵房
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteGasDrainagePumpRoomHistoryByIds(String[] ids);

    void insertBatch(@Param("list") List<GasDrainagePumpRoomHistory> gasDrainagePumpRoomHistoryList);

    List<GasDrainagePumpRoomHistory> selectByTagName(String tagName);

    List<GasDrainagePumpRoomHistoryDto> getGasTotalFault();

    List<GasDrainagePumpRoomHistoryDto> getGasPowerValueList(@Param("dy") String dy, @Param("dl") String dl);
}
